package com.cc.secondKill.service.impl;

import com.cc.secondKill.dao.GoodsMapper;
import com.cc.secondKill.pojo.Goods;
import com.cc.secondKill.service.IGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("goodsService")
public class GoodsService implements IGoodsService {

    @Autowired
    private GoodsMapper goodsMapper;

    public List<Goods> getGoodsList(){
        List<Goods> goodsList = this.goodsMapper.getGoodsList();
        return goodsList;
    }
}
